package cn.kgc.springcloud2038.order80.service.impl;

import cn.kgc.springcloud2038.api.pojo.CommonResult;
import cn.kgc.springcloud2038.api.pojo.Payment;
import cn.kgc.springcloud2038.order80.service.PaymentFeignService;
import org.springframework.stereotype.Component;

@Component //必须加 //必须加 //必须加
public class PaymentOpenFeign implements PaymentFeignService {
    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        return new CommonResult<>(500,"降级啦1",null);
    }

    @Override
    public CommonResult create(Payment payment) {
        return new CommonResult<>(500,"降价啦2",null);
    }
}
